package routers

import (
	"github.com/astaxie/beego"
	"WebAdminSys/controllers"
	"github.com/dchest/captcha"
)

func init() {
	// 默认登录
	beego.Router("/",&controllers.LoginController{},"*:LoginIn")
	beego.Router("/login",&controllers.LoginController{},"*:LoginIn")
	beego.Router("/login_out",&controllers.LoginController{},"*:LoginOut")
	beego.Router("/no_auth",&controllers.LoginController{},"*:NoAuth")
	beego.Handler("/captcha/*.png", captcha.Server(100, 30)) //验证码

	beego.Router("/home",&controllers.HomeController{},"*:Index")
	beego.Router("/home/start",&controllers.HomeController{},"*:Start")
	
	//权限管理
	beego.AutoRouter(&controllers.ManageAdminController{})
	beego.AutoRouter(&controllers.ManageAuthController{})



	//系统管理
	beego.AutoRouter(&controllers.SysAdddiamondsController{})
	beego.AutoRouter(&controllers.SysAddgoldsController{})
	//beego.AutoRouter(&controllers.SysBloodcontrolController{})
	//beego.AutoRouter(&controllers.SysBloodinpuController{})
	beego.AutoRouter(&controllers.SysControllogController{})
	beego.AutoRouter(&controllers.SysGamenoticeController{})
	beego.AutoRouter(&controllers.SysMangerlogsController{})
	beego.AutoRouter(&controllers.SysRoomconfController{})
	//图表相关
	beego.AutoRouter(&controllers.ChartDatasController{})
	//至尊vip相关
	beego.AutoRouter(&controllers.ExtremevipManageController{})
	//用户管理

	beego.AutoRouter(&controllers.UsersFinduserController{})
	beego.AutoRouter(&controllers.UsersGetgiftController{})
	beego.AutoRouter(&controllers.UsersRechargelogController{})
	beego.AutoRouter(&controllers.UserGivegiftController{})
	beego.AutoRouter(&controllers.UserRecordController{})

	//个人中心
	beego.AutoRouter(&controllers.ProfileUserController{})
}
